<?php
	$id = $_GET['id'];
	//连接数据库
	mysql_connect('localhost','root','');
	
	//选择数据库
	mysql_select_db('lamp111');
	
	mysql_set_charset('utf8');
	
	//准备SQL语句
	$sql = "update post set recycle=1 where id=$id";
	
	//执行SQL语句
	mysql_query($sql);
	
	//处理结果集
	if (mysql_affected_rows() > 0){
		
		header('location:./post_message.php');
		
	}
	mysql_close();
?>